home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8196 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: bigblue.oit.unc.edu!gibbs!swygert
  2. From: swygert@gibbs.oit.unc.edu (Kimberly Swygert Raines)
  3. Newsgroups: comp.lang.c++
  4. Subject: question about string-to-number conversion
  5. Date: 15 Feb 1996 17:34:10 GMT
  6. Organization: University of North Carolina, Chapel Hill
  7. Message-ID: <4fvqqi$17ku@bigblue.oit.unc.edu>
  8. NNTP-Posting-Host: gibbs.oit.unc.edu
  9.  
  10. i have a question about using C++ to read in data from files which are 
  11. not white-space delineated (in fact, some of the data will be in Fortran's 
  12. scientific notation (-1.456e+2, for example, and some of the data may 
  13. come from dialog boxes).  we are unsure at this point as to how to read 
  14. this data in.  cin won't work, and while we have gotten hold of some 
  15. sample programs that utilize the "atoi" command, it's only in the context 
  16. of the argc and argv commands, and i think those are only needed if we 
  17. run this on UNIX (which we're not).  can someone supply me with some info 
  18. on atoi, as well as any info about reading in string data?  i may not be 
  19. explaining this too clearly, as i'm part of a research group that's just 
  20. now learning c++.  we haven't found too much in the documentation that we 
  21. have.....
  22.  
  23. any info would be appreciated
  24.  
  25. kimberly swygert
  26. swygert@gibbs.oit.unc.edu
  27.